package com.shop.mall.dao;

import com.shop.mall.entity.Book;
import com.shop.mall.utils.Pages;

import java.util.List;


/**
 * @author admin
 */
public interface BookDao {
    List<Book> select(int id) throws Exception;

    int add(Book book);

    int update(int id, String bookname, String isbn, String publisher, int price, String publisdate) throws Exception;

    Pages showAll(int currentPage, int pageSize) throws Exception;

    int delete(int id) throws Exception;
}

